package restlet;

import java.io.IOException;

import org.restlet.Client;
import org.restlet.data.Method;
import org.restlet.data.Protocol;
import org.restlet.representation.Representation;
import org.restlet.Request;
import org.restlet.Response;

public class Client_helloworld {
	public static void main(String[] args) throws IOException {
		Request request = new Request(Method.GET, "http://localhost:8182");
		Client client = new Client(Protocol.HTTP);
		Response response = client.handle(request);

		Representation output = response.getEntity();
		output.write(System.out);
	}
}